function login(state = { token: '', refresh_token: '' }, action) {
  const { type, payload } = action
  switch (type) {
    case 'login_token':
      return payload
    case 'login_removeReduxToken':
      return { token: '', refresh_token: '' }
    default:
      return state
  }
}

export default login
